package com.example.test.operate.resource;

import com.example.test.operate.POJO.VO.OperateAllotFunctionGetVO;
import com.example.test.operate.service.IOperateFunctionDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *
 * </desc>
 *
 * @createDate 2021-07-22
 */
@RestController
public class OperateFunctionServiceResource {

    @Autowired
    IOperateFunctionDaoService iOperateFunctionDaoService;

    /**
     * <desc>
     *      获取分配菜单所有节点
     * </desc>
     *
     * @return
     * @author
     * @createDate
     */
    @RequestMapping(path = "/operate/function/getAllotFunction")
    public OperateAllotFunctionGetVO getAllotFunction(@RequestParam("roleId") String roleId) {
        return iOperateFunctionDaoService.getAllotFunction(roleId);
    }
}
